!! -*-Text-*-
###################################################################
 FILE: "JEG Text Tools Readme"
                                   created: 3/13/97 {2:33:10 PM} 
                               last update: 8/2/98 {6:16:39 PM} 
 Author: Jonathan Guyer
 E-mail: <jguyer@his.com>
    WWW: <http://www.his.com/~jguyer/>

 modified by  rev reason
 -------- --- --- -----------
 3/13/97  JEG 1.0 original
###################################################################


###################################################################
FILE: "JEG Extract Dimensions"
								  created: 9/25/96 {3:45:24 PM} 
							  last update: 3/13/97 {2:17:39 PM} 
Description: 
	Given a string containing a dimensioned number, sets two globals in the 
	current data folder: V_dimensionValue is the numerical value and 
	S_dimensionString is (dur) the dimension string.  SI prefixes are 
	extracted from the dimension string and the value is adjusted 
	accordingly (not all prefixes are included, but they're easy to add).
	
	Example: JEG_ExtractDimensions("43.234 nm")
	Result:		V_dimensionValue = 4.3234E-08
				S_dimensionString = "m"

History

modified by	 rev reason
-------- --- --- -----------
09/25/96 JEG 1.0 original
10/08/96 JEG 1.1 Fixed bug in parsing of "~" prefix for 10^-6

Needs:
  "JEG Strip Whitespace"

###################################################################
Igor Pro - JEG Image Tools

FILE: "JEG Keyword-Value"
								  created: 8/9/96 {1:27:33 PM} 
							  last update: 3/13/97 {2:18:06 PM} 
Author:	Jonathan Guyer
E-mail:	<j-guyer@nwu.edu>
  mail:	Northwestern University
		Evanston, IL

Description: 
	Just like WaveMetrics' Keyword-Value routines, except two additional 
	parameters are passed: a field separator and a record separator.
	
	Example: 
	Nanoscope headers consist of keyworded records.  In Nanoscope II keywords 
	are separated from values by " = ", but Nanoscope III uses ":".  In both, 
	records are separated by knuckle-dragger carriage-returnline-feeds.
	
	For NSII, the scan size in nm is obtained by 
		JEG_NumByKey("scan_sz", theHeader, " = ", crlf)
	
	For NSIII, the scan size is obtained by
		JEG_AbortingStrByKey("\Scan size", theHeaders[imageNumber], ":", crlf)
	and the string is converted to proper dimensions with JEG_ExtractDimensions()

History

modified by	 rev reason
-------- --- --- -----------
09/25/96 JEG 1.0 original
08/02/98 JEG 1.1 corrected parameter order for "replace" routines

###################################################################
FILE: "JEG Strip Whitespace"
								  created: 9/25/96 {4:02:51 PM} 
							  last update: 3/13/97 {2:19:36 PM} 

Description: 
	Eliminates leading and trailing whitespace (defined by user; pass " \t" 
	for spaces and tabs) and replaces runs of whitespace with a single space 
	character.

History

modified by	 rev reason
-------- --- --- -----------
09/25/96 JEG 1.0 original

###################################################################
